package Java.BlackHorse.File;

import java.io.File;
import java.io.IOException;

public class FileDemo4 {
    /*
    * public boolean createNewFile()
    * public boolean mkdir()
    * public boolean mkdirs()
    * public boolean delete()  非空文件夹不能直接删除
    * */

    public static void main(String[] args) throws IOException {
        File f1 = new File("File//aaa//bbb//c.txt");
//        System.out.println(isExist);
//        if(!isExist) {
//            f1.createNewFile();
//        }else{
//            f1.delete();
//        }
        File f2 = new File("File//aaa//bbb");
        System.out.println(f2.mkdir());
        System.out.println(f2.mkdirs());
//        System.out.println(f2.delete());
//        boolean isExist = f1.exists();

    }

}
